<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: Ahuanlien
  Date: 2018/6/8
  Time: 12:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <%@include file="/static/common/commom.jsp" %>
    <script src="/static/js/car.js"></script>
</head>
<body>
<table id="car_dataGrid"></table>
<!--工具栏-->
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>

    <input class="easyui-textbox" id="keyword" name="keyword" prompt="车主姓名/型号/车牌号码">

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="searchForm">查询</a>
</div>

<div id="btns">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>

<div id="car_dialog">
    <form id="car_form" method="post">
        <input id="carId" type="hidden" name="id">
        <table align="center">
            <tr>
                <td>车主姓名:</td>
                <td><input name="name" class="easyui-textbox" ></td>
            </tr>
            <tr id="carbrand">
                <td>车辆品牌:</td>
                <td><input class="easyui-combobox" name="carbrand" prompt="请选择"
                           data-options="editable:false,panelHeight:'auto',valueField:'id',textField:'name',url:'/dictionary/selectDictionaryItemBySn.do?sn=CarBrand'"/>
                </td>
            </tr>
            <tr>
                <td>车辆型号:</td>
                <td><input name="model" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>车牌号码:</td>
                <td><input name="number" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>排气量:</td>
                <td><input name="gas" class="easyui-numberbox"></td>
            </tr>
            <tr>
                <td>购买日期:</td>
                <td><input name="pdate" class="easyui-datebox"></td>
            </tr>
            <tr>
                <td>市场估价:</td>
                <td><input name="price" class="easyui-numberbox"></td>
            </tr>
            <tr>
                <td>分类:</td>
                <td><input id="typestate" name="typestate" class="easyui-combobox"
                           data-options='{
                           data:[
                           {value:"0",text:"载物"},
                           {value:"1",text:"载客"}
                           ],
                           textField:"text",valueField:"value",panelHeight:"auto"
                           }'></td>
            </tr>

            <tr id="weight">
                <td>车载大小:</td>
                <td><input class="easyui-combobox" name="weight" prompt="请选择"
                           data-options="editable:false,panelHeight:'auto',valueField:'id',textField:'name',url:'/dictionary/selectDictionaryItemBySn.do?sn=LoadSize'"/>
                </td>
            </tr>
            <tr>
                <td>备注信息:</td>
                <td><input name="mark" class="easyui-textbox"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>